//
// CWaveMakerShape.java
// Copyright (C) 2010  "Naush" <naush _ hotmail _ fr>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>./* ----------------------------------------------------------------------------







package org.ryzom.nel.threed;

import org.ryzom.nel.misc.IStream;

public class CWaveMakerShape extends IShape {
  private long swigCPtr;

  public CWaveMakerShape(long cPtr, boolean cMemoryOwn) {
    super(nel3dJNI.CWaveMakerShape_SWIGUpcast(cPtr), cMemoryOwn);
    swigCPtr = cPtr;
  }

  public static long getCPtr(CWaveMakerShape obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        nel3dJNI.delete_CWaveMakerShape(swigCPtr);
      }
      swigCPtr = 0;
    }
    super.delete();
  }

  public CWaveMakerShape() {
    this(nel3dJNI.new_CWaveMakerShape(), true);
  }

  public void serial(IStream f) {
    nel3dJNI.CWaveMakerShape_serial(swigCPtr, this, IStream.getCPtr(f), f);
  }

  public CTransformShape createInstance(CScene scene) {
    long cPtr = nel3dJNI.CWaveMakerShape_createInstance(swigCPtr, this, CScene.getCPtr(scene), scene);
    return (cPtr == 0) ? null : new CTransformShape(cPtr, false);
  }

  public boolean clip(SWIGTYPE_p_std__vectorT_NLMISC__CPlane_t pyramid, SWIGTYPE_p_NLMISC__CMatrix worldMatrix) {
    return nel3dJNI.CWaveMakerShape_clip(swigCPtr, this, SWIGTYPE_p_std__vectorT_NLMISC__CPlane_t.getCPtr(pyramid), SWIGTYPE_p_NLMISC__CMatrix.getCPtr(worldMatrix));
  }

  public void render(IDriver arg0, CTransformShape arg1, boolean arg2) {
    nel3dJNI.CWaveMakerShape_render(swigCPtr, this, IDriver.getCPtr(arg0), arg0, CTransformShape.getCPtr(arg1), arg1, arg2);
  }

  public void getAABBox(SWIGTYPE_p_NLMISC__CAABBox bbox) {
    nel3dJNI.CWaveMakerShape_getAABBox(swigCPtr, this, SWIGTYPE_p_NLMISC__CAABBox.getCPtr(bbox));
  }

  public float getNumTriangles(float arg0) {
    return nel3dJNI.CWaveMakerShape_getNumTriangles(swigCPtr, this, arg0);
  }

  public void flushTextures(IDriver arg0, long arg1) {
    nel3dJNI.CWaveMakerShape_flushTextures(swigCPtr, this, IDriver.getCPtr(arg0), arg0, arg1);
  }

  public void setPeriod(float period) {
    nel3dJNI.CWaveMakerShape_setPeriod(swigCPtr, this, period);
  }

  public float getPeriod() {
    return nel3dJNI.CWaveMakerShape_getPeriod(swigCPtr, this);
  }

  public void setIntensity(float intensity) {
    nel3dJNI.CWaveMakerShape_setIntensity(swigCPtr, this, intensity);
  }

  public float getIntensity() {
    return nel3dJNI.CWaveMakerShape_getIntensity(swigCPtr, this);
  }

  public void setRadius(float radius) {
    nel3dJNI.CWaveMakerShape_setRadius(swigCPtr, this, radius);
  }

  public float getRadius() {
    return nel3dJNI.CWaveMakerShape_getRadius(swigCPtr, this);
  }

  public void setWaterPoolID(long id) {
    nel3dJNI.CWaveMakerShape_setWaterPoolID(swigCPtr, this, id);
  }

  public long getWaterPoolID() {
    return nel3dJNI.CWaveMakerShape_getWaterPoolID(swigCPtr, this);
  }

  public void setImpulsionMode(boolean on) {
    nel3dJNI.CWaveMakerShape_setImpulsionMode__SWIG_0(swigCPtr, this, on);
  }

  public void setImpulsionMode() {
    nel3dJNI.CWaveMakerShape_setImpulsionMode__SWIG_1(swigCPtr, this);
  }

  public boolean getImpulsionMode() {
    return nel3dJNI.CWaveMakerShape_getImpulsionMode(swigCPtr, this);
  }

  public CTrackDefaultVector getDefaultPos() {
    long cPtr = nel3dJNI.CWaveMakerShape_getDefaultPos(swigCPtr, this);
    return (cPtr == 0) ? null : new CTrackDefaultVector(cPtr, false);
  }

}
